.class Lcom/estrongs/android/pop/app/imageviewer/c$a$a;
.super Ljava/lang/Object;
.source "ImageAdapter.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/pop/app/imageviewer/c$a;->a(Les/cm;Landroid/graphics/Bitmap;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Landroid/graphics/Bitmap;

.field final synthetic b:Les/cm;

.field final synthetic c:Lcom/estrongs/android/pop/app/imageviewer/c$a;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/app/imageviewer/c$a;Landroid/graphics/Bitmap;Les/cm;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/imageviewer/c$a$a;->c:Lcom/estrongs/android/pop/app/imageviewer/c$a;

    iput-object p2, p0, Lcom/estrongs/android/pop/app/imageviewer/c$a$a;->a:Landroid/graphics/Bitmap;

    iput-object p3, p0, Lcom/estrongs/android/pop/app/imageviewer/c$a$a;->b:Les/cm;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 8

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/c$a$a;->c:Lcom/estrongs/android/pop/app/imageviewer/c$a;

    iget v1, v0, Lcom/estrongs/android/pop/app/imageviewer/c$a;->a:I

    iget-object v0, v0, Lcom/estrongs/android/pop/app/imageviewer/c$a;->c:Lcom/estrongs/android/pop/app/imageviewer/c;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/imageviewer/c;->a(Lcom/estrongs/android/pop/app/imageviewer/c;)I

    move-result v0

    sub-int/2addr v1, v0

    invoke-static {v1}, Ljava/lang/Math;->abs(I)I

    move-result v0

    const/4 v1, 0x5

    if-ge v0, v1, :cond_2

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/c$a$a;->a:Landroid/graphics/Bitmap;

    if-nez v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/c$a$a;->c:Lcom/estrongs/android/pop/app/imageviewer/c$a;

    iget-object v1, v0, Lcom/estrongs/android/pop/app/imageviewer/c$a;->b:Landroid/widget/ImageView;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/imageviewer/c$a;->c:Lcom/estrongs/android/pop/app/imageviewer/c;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/imageviewer/c;->b(Lcom/estrongs/android/pop/app/imageviewer/c;)Landroid/graphics/Bitmap;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    goto :goto_0

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/c$a$a;->b:Les/cm;

    invoke-interface {v0}, Les/cm;->i()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/pop/utils/r;->a(Ljava/lang/String;)I

    move-result v0

    if-eqz v0, :cond_1

    .line 5
    new-instance v6, Landroid/graphics/Matrix;

    invoke-direct {v6}, Landroid/graphics/Matrix;-><init>()V

    int-to-float v0, v0

    .line 6
    invoke-virtual {v6, v0}, Landroid/graphics/Matrix;->setRotate(F)V

    .line 7
    iget-object v1, p0, Lcom/estrongs/android/pop/app/imageviewer/c$a$a;->a:Landroid/graphics/Bitmap;

    const/4 v2, 0x0

    const/4 v3, 0x0

    .line 8
    invoke-virtual {v1}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v4

    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/c$a$a;->a:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v5

    const/4 v7, 0x0

    .line 9
    invoke-static/range {v1 .. v7}, Landroid/graphics/Bitmap;->createBitmap(Landroid/graphics/Bitmap;IIIILandroid/graphics/Matrix;Z)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 10
    iget-object v1, p0, Lcom/estrongs/android/pop/app/imageviewer/c$a$a;->a:Landroid/graphics/Bitmap;

    invoke-virtual {v1}, Landroid/graphics/Bitmap;->recycle()V

    .line 11
    iget-object v1, p0, Lcom/estrongs/android/pop/app/imageviewer/c$a$a;->c:Lcom/estrongs/android/pop/app/imageviewer/c$a;

    iget-object v1, v1, Lcom/estrongs/android/pop/app/imageviewer/c$a;->b:Landroid/widget/ImageView;

    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    goto :goto_0

    .line 12
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/c$a$a;->c:Lcom/estrongs/android/pop/app/imageviewer/c$a;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/imageviewer/c$a;->b:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/imageviewer/c$a$a;->a:Landroid/graphics/Bitmap;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    :cond_2
    :goto_0
    return-void
.end method
